<?php

namespace JsonLowCode\Traits\Props;

trait HasChildrenField
{
    /**
     * children 的字段名
     * @param string $childrenField 是否js表达式
     * @return $this
     */
    public function childrenField(string $childrenField = 'children', bool $isJSExpression = false): static
    {
        return $this->prop("children-field", $childrenField,$isJSExpression);
    }

}
